package com.itzdm.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itzdm.reggie.dto.EmployeeDTO;
import com.itzdm.reggie.entity.Employee;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {
    /**
     * 员工登录接口
     * @param request
     * @param employee
     * @return
     */
    Employee login(HttpServletRequest request, Employee employee);

    /**
     * 新增员工接口
     * @param employeeDTO
     */
    void saveEmp(HttpServletRequest request,EmployeeDTO employeeDTO);

    /**
     * 分页查询员工
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page pageEmp(int page, int pageSize, String name);

    /**
     * 启用或禁用员工状态
     * @param request
     * @param employee
     */
    void updateStatus(HttpServletRequest request,Employee employee);

}
